#ifndef __SPI_H__
#define __SPI_H__


#include <STM32F10x.h>

#define CS		GPIO_Pin_12
#define CLK		GPIO_Pin_13
#define MISO	GPIO_Pin_14
#define MOSI    GPIO_Pin_15

void SPI_Init(void);

void SPI_Write_ReadData(unsigned char r_data[], int r_len, unsigned char w_data[], int w_len);

#endif
